package com.ruoyi.project.dashbord.controller;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.dashbord.mapper.DashBordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 首页仪表盘
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/index/dashbord")
public class DashBordController {
    @Autowired
    private DashBordMapper mapper;

    /**
     * 日访问量
     *
     * @return
     * @throws Exception
     */
    @GetMapping("/dailyUser")
    public AjaxResult dailyUser() throws Exception {
        return AjaxResult.success(mapper.dailyUser());
    }
}
